package org.ma5d;

/**
 * line = 16
 * line = 22
 * tryTest() = 22
 */
public class Main {

    public static void main(String[] args) {
        System.out.println("tryTest() = " + tryTest());
    }

    @SuppressWarnings("finally")
    public static int tryTest(){
        try {
            incr(16);
            return 16;
        }catch (Exception e) {
            incr(19);
            return 19;
        }finally {
            incr(22);
            return 22;
        }
    }

    private static int incr(int line){
        System.out.println("line = " + line);
        return line;
    }

}

